#include "player.h"

Player::Player(QObject *parent) :
   QObject(parent)
{
}


Player::Player(quint32 id, const QHostAddress &address, const QString &name)
{
   this->id = id;
   this->ipAddress = address;
   this->name = name;
   isReady = false;
}


Player::Player(quint32 id, QTcpSocket *clientSocket, const QString &name)
{
   this->id = id;
   this->name = name;
   isReady = false;
   socket = clientSocket;
}
